<?php
/**
 * @package    actions
 */
class taskComponents extends sfComponents
{
  public function executeRelatedTests()
  {
    $tests = array();
    foreach(TestTable::findAllTestsByTaskId($this->node['id']) as $test) {
      $className = $test->getReadableClassName();
      $tests[$className][] = $test;
    }
    $this->tests = $tests;
  }
}